package com.gupt.youhd.service;/*
@author name
@data 2023/6/6-17:00
*/


import com.gupt.youhd.entity.CartItem;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CartService {

    //查询当前用户购物车商品
    List<CartItem> retrieveAllCartItemByUserId(HttpServletRequest request,String userName);

    //删除当前购物车商品
    void delete (HttpServletRequest request,int productId);

    //添加商品到购物车
    void insert(HttpServletRequest request,Integer cartItem);

    //修改商品数量 +1
    void update(HttpServletRequest request,Integer productId,int status);

    //批量删除
    void batchDel(HttpServletRequest request,List<String> productId);
}
